package com.xianyun.site.auth.common.exception;

import org.springframework.security.core.AuthenticationException;

/**
 * 三方账号未绑定异常
 * @author mac_zyj
 */
public class UserNotBindException extends AuthenticationException {
    private static final String NOT_BIND_ERROR ="用户未绑定，请确认账号是是否正确或创建系统账号!";
    /**社交账号本地存库编号!*/
    private final Integer socialId;

    public UserNotBindException(Integer socialId) {
        super(NOT_BIND_ERROR);
        this.socialId=socialId;
    }

    public UserNotBindException( Integer socialId,Throwable t) {
        super(NOT_BIND_ERROR, t);
        this.socialId=socialId;
    }

    public Integer getSocialId() {
        return socialId;
    }
}
